﻿using System.Xml.Serialization;

namespace HamcoWcs.Models.TibcoMessage
{

    [XmlRoot("MESSAGE")]
    public class PalletRequestTransportJobMessage : BaseTibcoMessage<PalletRequestTransportJobMessageBody>
    {
        public PalletRequestTransportJobMessage()
        {

        }
        public PalletRequestTransportJobMessage(PalletRequestTransportJobMessageBody body, string inboxName = "", string listener = "") : base("PalletRequestTransportJobRequest", body, inboxName, listener)
        {
        }
        public void SetReplyName()
        {
            this.HEADER.MESSAGENAME = "PalletRequestTransportJobReply";
        }
    }


    public class PalletRequestTransportJobMessageBody : PalletEventBase
    {
        public PalletRequestTransportJobMessageBody()
        {
        }

        [XmlElement("TRANSPORTJOBNAME")]
        public string TransportJobName { get; set; }
        [XmlElement("PALLETNAME")]
        public string PalletName { get; set; }
        [XmlElement("SOURCEMACHINENAME")]
        public string SourceMachineName { get; set; }
        [XmlElement("SOURCEPOSITIONTYPE")]
        public string SourcePositionType { get; set; }
        [XmlElement("SOURCEPOSITIONNAME")]
        public string SourcePositionName { get; set; }
        [XmlElement("SOURCEZONENAME")]
        public string SourceZoneName { get; set; }
        [XmlElement("DESTINATIONMACHINENAME")]
        public string DestinationMachineName { get; set; }
        [XmlElement("DESTINATIONPOSITIONTYPE")]
        public string DestinationPositionType { get; set; }
        [XmlElement("DESTINATIONPOSITIONNAME")]
        public string DestinationPositionName { get; set; }
        [XmlElement("DESTINATIONZONENAME")]
        public string DestinationZoneName { get; set; }
        [XmlElement("PRIORITY")]
        public string Priority { get; set; }
        [XmlElement("LANGUAGE")]
        public string Language { get; set; }
    }
}
